package org.soaism.journey.service.tests.client;

import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

import org.soaism.testserver.service.entities.ChangeLogResponse;
import org.soaism.testserver.service.entities.DeleteLogResponse;
import org.soaism.testserver.service.entities.GetLogResponse;
import org.soaism.testserver.service.entities.Journey;
import org.soaism.testserver.service.entities.NewLogResponse;

@Path("/journeyservice")
public interface IClient {

	@GET
	@Path("/log/{id}")
	@Consumes("application/json")
	GetLogResponse getLog(@PathParam("id") int id);

	@PUT
	@Path("/log/{id}")
	@Consumes("application/json")
	ChangeLogResponse changeLog(@PathParam("id") int id, Journey body);

	@POST
	@Path("/log")
	@Consumes("application/json")
	NewLogResponse createLog(Journey param);

	@DELETE
	@Path("/log/{id}")
	@Consumes("application/json")
	DeleteLogResponse deleteLog(@PathParam("id") int id);
	
}